//
//  DetailsCell.m
//  Everest
//
//  Created by 李其昌 on 14/12/30.
//  Copyright (c) 2014年 ThreeL. All rights reserved.
//

#import "DetailsCell.h"
#define kCellWidth [UIApplication sharedApplication].keyWindow.bounds.size.width
@implementation DetailsCell

- (void)dealloc
{
    [_myWebView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myWebView = [[UIWebView alloc] init];
        [self addSubview:self.myWebView];
        [_myWebView release];
    }
    return self;
}

- (void)layoutSubviews
{
    self.myWebView.frame = CGRectMake(0, 0, kCellWidth, self.contentView.bounds.size.height);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
